﻿<Window x:Class="ActiveStory.UI.ProjectWizard"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:ActiveStory.UI"
    Title="Project Wizard" Height="188" Width="455" Name="ProjectWizardWindow" WindowStartupLocation="CenterOwner" ResizeMode="NoResize" ShowInTaskbar="False" WindowStyle="ThreeDBorderWindow" Icon="../Content/icon.png" SizeToContent="Height">
    <Grid>
        <TabControl Name="MainTabControl" TabStripPlacement="Top">
            <TabItem Header="New Project" Name="NewProjectTab">
                <Grid ShowGridLines="False" Margin="5">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="25" />
                        <RowDefinition Height="25" />
                        <RowDefinition Height="25" />
                        <RowDefinition Height="25" />
                        <RowDefinition />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="90" />
                        <ColumnDefinition Width="253*" />
                        <ColumnDefinition Width="70" />
                    </Grid.ColumnDefinitions>
                    <Label Height="28" Grid.Row="1" Name="NewProjectDirectoryLabel" VerticalAlignment="Top" Grid.RowSpan="2">Project Folder:</Label>
                    <TextBox Height="23" Name="NewProjectDirectoryTextBox" VerticalAlignment="Top" Grid.Column="1" Grid.Row="1" TabIndex="1" />
                    <Button Height="23" VerticalAlignment="Top" Grid.Column="2" Grid.Row="1" Name="NewProjectFolderBrowseButton" Click="NewProjectFolderBrowseButton_Click" TabIndex="2">Browse...</Button>
                    <Label Grid.Row="0" VerticalAlignment="Top" Height="25.96" Name="ProjectNameLabel">Project Name:</Label>
                    <TextBox Grid.Row="0" Grid.Column="1" Name="ProjectNameTextBox" TabIndex="0"></TextBox>
                    <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="115"/>
                            <ColumnDefinition Width="38" />
                            <ColumnDefinition Width="45"/>
                            <ColumnDefinition Width="40"/>
                            <ColumnDefinition Width="15"/>
                            <ColumnDefinition Width="50"/>
                            <ColumnDefinition Width="40"/>
                        </Grid.ColumnDefinitions>
                        <Label Grid.Column="0">Default Canvas Size:</Label>
                        <Label Grid.Column="2">Width:</Label>
                        <TextBox Name="CanvasWidthTextBox" Grid.Column="3" Text="800" TabIndex="3"></TextBox>
                        <Label Grid.Column="5">Height:</Label>
                        <TextBox Name="CanvasHeightTextBox" Grid.Column="6" Text="600" TabIndex="4"></TextBox>
                    </Grid>
                    <Label Grid.Row="3" Grid.Column="0">Canvas Color:</Label>
                    <Button Style="{StaticResource ColorButton}" Grid.Row="3" Grid.Column="1" HorizontalAlignment="Left" Width="40" Name="CanvasColorButton" Click="CanvasColorButton_Click"></Button>
                    <Button Grid.Row="4" Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="70" Height="25" Name="NewProjectOkButton" IsDefault="True" Click="NewProjectOkButton_Click" TabIndex="5">OK</Button>
                    <Button Grid.Row="4" Grid.Column="2" VerticalAlignment="Bottom" Height="25" Name="NewProjectCancelButton" IsCancel="True" TabIndex="6">Cancel</Button>
                </Grid>
            </TabItem>
            <TabItem Header="Open Project" Name="OpenProjectTab">
                <Grid ShowGridLines="False" Margin="5">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="25" />
                        <RowDefinition Height="90" />
                        <RowDefinition />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="90" />
                        <ColumnDefinition Width="253*" />
                        <ColumnDefinition Width="70" />
                    </Grid.ColumnDefinitions>
                    <Label Height="28" Grid.Row="0" Name="OpenProjectFileLabel" VerticalAlignment="Top" Grid.RowSpan="2">Project File:</Label>
                    <TextBox Height="23" Name="OpenProjectFileTextBox" VerticalAlignment="Top" Grid.Column="1" Grid.Row="0" TabIndex="0" ToolTip="{Binding ElementName=OpenProjectFileTextBox,Path=Text}"/>
                    <!--<ComboBox Height="23" Name="OpenProjectFileComboBox" VerticalAlignment="Top" Grid.Column="1" Grid.Row="0" TabIndex="0" IsEditable="True" />-->
                    <ListBox Name="OpenProjectFileListBox" Grid.Column="1" Grid.Row="1" Grid.RowSpan="1" SelectionChanged="OpenProjectFileListBox_SelectionChanged" ScrollViewer.HorizontalScrollBarVisibility="Hidden">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <Border BorderThickness="1" BorderBrush="SteelBlue" CornerRadius="4" Margin="0,1,0,1" HorizontalAlignment="Center">
                                    <DockPanel MaxWidth="{Binding ElementName=OpenProjectFileListBox, Path=ActualWidth}">
                                        <DockPanel.ToolTip>
                                            <DockPanel>
                                                <TextBlock DockPanel.Dock="Top" Text="{Binding Path=ProjectName}" FontWeight="Bold"></TextBlock>
                                                <TextBlock DockPanel.Dock="Bottom" Text="{Binding Path=ProjectPath}"></TextBlock>
                                            </DockPanel>
                                        </DockPanel.ToolTip>
                                        <TextBlock DockPanel.Dock="Top" Text="{Binding Path=ProjectName}" FontWeight="Bold"></TextBlock>
                                        <TextBlock DockPanel.Dock="Bottom" Text="{Binding Path=ProjectPath}"></TextBlock>
                                    </DockPanel>

                                </Border>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                    <Button Height="23" VerticalAlignment="Top" Grid.Column="2" Grid.Row="0" Name="OpenProjectBrowseButton" Click="OpenProjectBrowseButton_Click" TabIndex="1">Browse...</Button>
                    <Button Grid.Row="2" Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="70" Height="25" IsDefault="True" Name="OpenProjectOkButton" Click="OpenProjectOkButton_Click" TabIndex="2">OK</Button>
                    <Button Grid.Row="2" Grid.Column="2" VerticalAlignment="Bottom" Height="25" IsCancel="True" Name="OpenProjectCancelButton" TabIndex="3">Cancel</Button>
                </Grid>
            </TabItem>
        </TabControl>
    </Grid>
</Window>
